using System;
using digit.Core;
using System.Data;

namespace SMS.ServiceManager
{
	public class CityInfo
	{
		#region CONSTRUCTORS
		public CityInfo()
		{
		
			this.m_cityID = Util.NULL_INT;
			this.m_cityName = Util.NULL_STRING;
			this.m_cityCode = Util.NULL_STRING;
			this.m_countryID = Util.NULL_INT;
		}
		public CityInfo( int cityID,  string cityName,  string cityCode,  int countryID)
		{
		
			this.m_cityID = cityID;
			this.m_cityName = cityName;
			this.m_cityCode = cityCode;
			this.m_countryID = countryID;
		}
		public CityInfo( DataRow dRow)
		{
		
			this.m_cityID = (int) Util.ReplaceDBNullTo(dRow["cityID"], Util.NULL_INT);
			this.m_cityName = Util.ReplaceDBNullTo(dRow["cityName"], Util.NULL_STRING).ToString();
			this.m_cityCode = Util.ReplaceDBNullTo(dRow["cityCode"], Util.NULL_STRING).ToString();
			this.m_countryID = (int) Util.ReplaceDBNullTo(dRow["countryID"], Util.NULL_INT);
		}
		#endregion
		
		#region ATTRIBUTES
		private int m_cityID;
		private string m_cityName;
		private string m_cityCode;
		private int m_countryID;
		#endregion
		
		#region PROPERTIES
		public int CityID
		{
			get
			{
				return this.m_cityID;
			}
			set
			{
				this.m_cityID = value;
			}
		}
		
		public string CityName
		{
			get
			{
				return this.m_cityName;
			}
			set
			{
				this.m_cityName = value;
			}
		}
		
		public string CityCode
		{
			get
			{
				return this.m_cityCode;
			}
			set
			{
				this.m_cityCode = value;
			}
		}
		
		public int CountryID
		{
			get
			{
				return this.m_countryID;
			}
			set
			{
				this.m_countryID = value;
			}
		}
		
		#endregion
		
	}
}